//
//  HTILView.m
//  HeartTravel
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "HTILView.h"

@implementation HTILView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat width = frame.size.width;
        CGFloat height = frame.size.height;
        
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, height, height)];
        
        _label = [[UILabel alloc] initWithFrame:CGRectMake(height, 0, width - height, height)];
        _label.font = [UIFont systemFontOfSize:12];
        
        [self addSubview:_imageView];
        [self addSubview:_label];
    }
    return self;
}

@end
